package ClassesInterne;

public class Cercle {
	private Centre c;
	private double r;

	class Centre {
		private int x, y;

		public Centre(int x, int y) {
			this.x = x;
			this.y = y;
		}

		public void affiche() {
			System.out.println(x + ", " + y);
		}
	}

	public Cercle(int x, int y, double r) {
		c = new Centre(x, y);
		this.r = r;
	}

	public void affiche() {
		System.out.print("cercle de rayon " + r + " de centre ");
		c.affiche();
	}

	public void deplace(int dx, int dy) {
		c.x += dx;
		c.y += dy;
	}
}
